package com.ruiysoft.crm.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2018-10-03
 */
@TableName("course_detail")
public class CourseDetail extends Model<CourseDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer courseId;

    private String detail;

    private String resourceUrl;

    private Integer sequence;

    private Date createTime;

    private Date updaetTime;

    private String name;

    /**
     * 试听标志
     */
    private Integer tryout;

    private Integer playTime;

    private Integer showDetail;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }
    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdaetTime() {
        return updaetTime;
    }

    public void setUpdaetTime(Date updaetTime) {
        this.updaetTime = updaetTime;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getTryout() {
        return tryout;
    }

    public void setTryout(Integer tryout) {
        this.tryout = tryout;
    }
    public Integer getPlayTime() {
        return playTime;
    }

    public void setPlayTime(Integer playTime) {
        this.playTime = playTime;
    }
    public Integer getShowDetail() {
        return showDetail;
    }

    public void setShowDetail(Integer showDetail) {
        this.showDetail = showDetail;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CourseDetail{" +
        "id=" + id +
        ", courseId=" + courseId +
        ", detail=" + detail +
        ", resourceUrl=" + resourceUrl +
        ", sequence=" + sequence +
        ", createTime=" + createTime +
        ", updaetTime=" + updaetTime +
        ", name=" + name +
        ", tryout=" + tryout +
        ", playTime=" + playTime +
        ", showDetail=" + showDetail +
        "}";
    }
}
